package ru.ipo.dces.plugins.multivariateplugin;

import ru.ipo.dces.debug.PluginBox;
import ru.ipo.dces.utils.ResultUtils;
import ru.ipo.problemsapi.*;

import javax.swing.*;

public class MultivariatePluginInternalProblem {

    public static void main(String[] args) {

        Problem problem = new MapProblem(ResultUtils.newMap(
                "statement", "<b>Каких цветов нет среди цветов радуги?</b>",
                "statement~type", "text/html",

                "isManyAnswers", "true",

                "option 0", "<i>Жёлтый</i>",
                "option 0~type", "text/html",

                "option 1", "<i>Фиолетовый</i>",
                "option 1~type", "text/html",

                "option 2", "<i>Розовый</i>",
                "option 2~type", "text/html",

                "option 3", "<i>Голубой</i>",
                "option 3~type", "text/html",

                "option 4", "<i>Серый</i>",
                "option 4~type", "text/html",

                "answer", "2 4",

                "server plugin", "ComparePlugin"
        ));

        PluginBox box = new PluginBox(
                MultivariatePlugin.class,
                problem
        );

        box.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        box.setVisible(true);


    }
}
